package com.ssc.manager.admin.ice;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import Ice.Current;
import TransferManage._TransferInterfaceDisp;

import com.ssc.manager.common.constant.SystemConstant;
import com.ssc.manager.common.utils.StringUtils;
import com.ssc.manager.trading.service.IBettingService;

@Component
public class TransferInterface extends _TransferInterfaceDisp {
	
	
	@Autowired
	private  IBettingService bettingService;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public String betting(String bets, Current __current) {
		/**
		 * 过虑内容，比如注单长度，内容
		 */
		
		if(StringUtils.isEmpty(bets)){
			return SystemConstant.BET_DATA_NULL;
		}
		return bettingService.betQueue(bets);
		
	}

	
}
